<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Admin: Admin info</title>
<style type="text/css">
#DivHR {
	position:absolute;
	width:981px;
	height:28px;
	z-index:2;
	left: 247px;
	top: 118px;
}
#apDiv1 {
	position:absolute;
	width:200px;
	height:115px;
	z-index:1;
	left: 508px;
	top: 187px;
}
</style>
</head>


<pre><p>                           <a href="index.php" ><img src="../Resources/eMart logo.png" width="170" height="67" alt="Logo" /></a>                                                               <b><a  style="color:#000; text-decoration:none;" href="customer_support.php">Customer Support</a>  |  <a style="color:#000; text-decoration:none;" href="Terms.php">Privacy Policy</a></b>
<div id="DivHR"><hr/></div>


<body>
<div id="apDiv1">
<?php

session_start();

if ($_SESSION['Admin'] == "IN")
{
	$con = mysql_connect("localhost","root","") or die ("could not connect to server");
	mysql_select_db ("web project",$con);
	
	$query = mysql_query("SELECT * FROM admins");
	
	echo "<table bordercolor='#6633FF' cellspacing='10px'>
				<tr>
					<td>Staff_ID</td>
					<td>First_Name</td>
					<td>Last_Name</td>
					<td>Email</td>
					<td>Password</td>
				</tr>";
				while ($row = mysql_fetch_array($query))
				{
					echo" <tr>
							<td>".$row['Staff_ID']."</td>
							<td>".$row['First_Name']."</td>
							<td>".$row['Last_Name']."</td>
							<td>".$row['email']."</td>
							<td>".$row['Password']."</td>
						  </tr>";
				}
				echo "</table>
	                Click <a href='admin.php'>HERE</a> to return";
	
}
else
{
	echo "<center><h3>You do not have permissions to view this page<br/>click <a href='login.php'>here</a> to login</h3></center>"; 
}
?>
</div>

</body>
</html>